package com.suyin.ximoon.upload;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.commons.CommonsMultipartResolver;

/**
 * 
 * @author gyx
 * 
 */
public class MyMultipartResolver extends CommonsMultipartResolver {
	@Override
	public boolean isMultipart(HttpServletRequest request) {
		String dir = request.getParameter("dir");
		if (dir != null) { // kindeditor多文件不转码
			return false;
		}
		return super.isMultipart(request);
	}
}